home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir26 / epi601_2.zip / FILES07.EXE / EDIT.EPA < prev    next >
Text File  |  1994-08-22  |  10KB  |  357 lines

  1. _DOS copy user3.txt doc1.txt
  2. %
  3. _DISPLAY
  4.  
  5.          -- LESSON 3 --
  6.  
  7.       RETRIEVING AND EDITING
  8.           A DOCUMENT
  9.  
  10. ..................................
  11. _ENDDISPLAY
  12. %
  13. _DISPLAY
  14.  This lesson will introduce more editing features of
  15.  EPED, and will discuss ways to find and retrieve files.
  16.  
  17.  The topics to be covered include:
  18.  
  19.    *retrieving files by filename or by file directory
  20.  
  21.    *deleting words and lines
  22.  
  23.    *recalling, or undeleting, deleted words and lines
  24.  
  25.    *inserting new lines
  26.  
  27.    *centering lines
  28. _ENDDISPLAY
  29. %
  30. _DISPLAY
  31.  After you have created and saved a file, you can
  32.  retrieve it at any time to review, edit, print or
  33.  continue typing the document.
  34. _ENDDISPLAY
  35. %
  36. _DISPLAY
  37.  To RETRIEVE A FILE, press <F2>, select the "Open file this
  38.  window" option using the arrow keys, and press <Enter>.  A
  39.  prompt box will appear on the screen, displaying the name of
  40.  the current or most recently accessed file.
  41.  
  42.  If you know the filename, type it in the prompt box.  (The
  43.  filename that is displayed will disappear as soon as you begin
  44.  to type.)  Press <Enter> and the file will appear on the screen.
  45. _ENDDISPLAY
  46. %
  47. _DISPLAY
  48.  If you don't remember the filename, you can request a list
  49.  (or directory) of all available files and choose a file
  50.  from this directory.  To do this:
  51.  
  52.      *At the prompt box, type  *.*  instead of a filename.
  53.       Press <Enter> and a directory of all the available
  54.       files will be displayed.
  55.  
  56.      *Move the selection bar to the correct filename and
  57.       press <Enter>.
  58.  
  59.      *The file will appear on the screen.
  60. _ENDDISPLAY
  61. %
  62. _DISPLAY
  63.  The asterisk (*) used in the previous example is referred
  64.  to as a WILDCARD.  When used in a filename format it means
  65.  "any"  --  that is,  "*.*"  means a filename that has ANY
  66.  filename and ANY file extension.  Another example is
  67.  "*.txt"  which means all files that have any filename but
  68.  have a file extension of .txt.
  69. _ENDDISPLAY
  70. %
  71. _DISPLAY
  72.  At the next screen, retrieve the file named DOC1.TXT by
  73.  using the file directory:
  74.  
  75.      *Press <F2>, select "Open file this window", and
  76.       press <Enter>.
  77.  
  78.      *At the prompt box, type  *.*  and press <Enter>.
  79.       A list of all available files will be displayed.
  80.  
  81.      *Move the selection bar to the file DOC1.TXT
  82.       using the up and down arrow keys and press <Enter>.
  83.  
  84. _ENDDISPLAY
  85. %
  86. [<F2>-Open file; *.* for directory; select DOC1.TXT & press <Enter>]
  87. _CLEARALL
  88. %
  89. _DISPLAY
  90.  After you have retrieved a file, you can continue typing or
  91.  editing the document.
  92.  
  93.  From the previous lesson, you know that you can delete text
  94.  using the <Backspace> and <Delete> keys.  When deleting more
  95.  than a few characters -- for example, words or whole lines --
  96.  you can save time by using other features of EPED.
  97.  
  98.  The <CTRL> key, when combined with certain other keys, will
  99.  perform such functions.
  100. _ENDDISPLAY
  101. %
  102. _DISPLAY
  103.  To invoke these functions, depress the <Ctrl> key, then
  104.  press the second key lightly while still holding down
  105.  <Ctrl>.  Release both keys immediately.
  106.  
  107.  The first function to try  - <CTRL-T> - is used to DELETE
  108.  A WORD.  Place the cursor under the first character of the
  109.  word to be deleted.  Press <CTRL> and then <T> and the word
  110.  will be removed.
  111. _ENDDISPLAY
  112. %
  113. _DISPLAY
  114.  The next screen will return you to the file DOC1.TXT.
  115.  
  116.  Practice deleting words using the <Ctrl-T> command:
  117.  
  118.    *Place the cursor under the first character of the
  119.     word to be deleted.
  120.  
  121.    *Press <Ctrl> and then <T> (while still holding
  122.     down <Ctrl>).  Release both keys immediately.
  123. _ENDDISPLAY
  124. %
  125. _OPENFILE DOC1.TXT
  126. [Move cursor to word, <Ctrl-T> to delete]
  127. _CLEARALL
  128. %
  129. _DISPLAY
  130.  If you accidentally delete the wrong word, you can
  131.  restore the line to its original text AS LONG AS YOU
  132.  HAVE NOT LEFT THE LINE.
  133.  
  134.  To restore the text, use the <F4>-"Undo this line"
  135.  option.  This command brings back the original text
  136.  of the line.
  137. _ENDDISPLAY
  138. %
  139. _DISPLAY
  140.  To restore the line, follow these steps:
  141.  
  142.   *With the cursor still in the line, press
  143.    <F4> and select "Undo this line" using the
  144.    selection bar.
  145.  
  146.   *Press <Enter> and the original text of the
  147.    line will appear on the screen.
  148. _ENDDISPLAY
  149. %
  150. _DISPLAY
  151.  Now you'll return to DOC1.TXT.  Practice deleting words
  152.  and then restoring the line.  Let's review the commands
  153.  once again:
  154.  
  155.    *To DELETE A WORD, place the cursor under the first
  156.     character of the word.  Press <Ctrl> and then <T> and
  157.     the word will be deleted.
  158.  
  159.    *To RESTORE A LINE, make sure you have not left the
  160.     line.  Press <F4>, select "Undo this line" and
  161.     press <Enter>.  The original text of the line is
  162.     restored to the screen.
  163. _ENDDISPLAY
  164. %
  165. _OPENFILE DOC1.TXT
  166. [<Ctrl-T> to delete word, then <F4>-Undo this line]
  167. _CLEARALL
  168. %
  169. _DISPLAY
  170.  DELETING A LINE is done in much the same way, using
  171.  <CTRL-Y>.  To delete a line:
  172.  
  173.     *Place the cursor under any character in the line
  174.      to be deleted.
  175.  
  176.     *Press <Ctrl> and then <Y>, and release them
  177.      immediately.  The line will disappear from the
  178.      screen.
  179.  
  180.  Now return to the file DOC1.TXT and practice deleting
  181.  a line or two of text using <Ctrl-Y>.
  182. _ENDDISPLAY
  183. %
  184. _OPENFILE DOC1.TXT
  185. [Move cursor to line, <Ctrl-Y> to delete line]
  186. _CLEARALL
  187. %
  188. _DISPLAY
  189.  To UNDELETE A LINE, use the <F4>-"Undelete" command.  This
  190.  is used to restore a line when the ENTIRE line has been
  191.  deleted, rather than PART of a line which was restored with
  192.  the previous command "Undo this line".
  193.  
  194.  To undelete the line:
  195.  
  196.   *Place the cursor in the line below the point where
  197.    the line should be inserted.
  198.  
  199.   *Go to the <F4> menu, select "Undelete" using the
  200.    arrow keys.
  201.  
  202.   *Press <Enter> and the line will reappear on the
  203.    screen.
  204. _ENDDISPLAY
  205. %
  206. _DISPLAY
  207.  Now return to the file and practice deleting and undeleting
  208.  lines.  To review the commands once again:
  209.  
  210.    *To DELETE A LINE, place the cursor in the line to be
  211.     deleted.  Press <Ctrl-Y> and the line will be deleted.
  212.  
  213.    *To UNDELETE A LINE, place the cursor in the line below
  214.     the point where the line should be inserted.  Press <F4>,
  215.     select "Undelete" and press <Enter>.  The line will
  216.     reappear on the screen.
  217. _ENDDISPLAY
  218. %
  219. _OPENFILE DOC1.TXT
  220. [<Ctrl-Y> to delete a line, <F4> to undelete]
  221. _CLEARALL
  222. %
  223. _DISPLAY
  224.  If you would like to add another line or more of text into
  225.  the document, or just add additional blank lines, you can
  226.  INSERT NEW LINES using <CTRL-N>.  To insert lines:
  227.  
  228.    *Go to the line below the point where the line should
  229.     be inserted.  Place the cursor under the first character
  230.     of the line.
  231.  
  232.    *Press <CTRL> and <N> and a blank line will be inserted.
  233.  
  234.  
  235.  At the next screen, practice inserting lines with <CTRL-N>.
  236.  Then try deleting the lines with <CTRL-Y>.
  237. _ENDDISPLAY
  238. %
  239. _OPENFILE DOC1.TXT
  240. [<Ctrl-N> to add a line, <Ctrl-Y> to delete a line]
  241. _CLEARALL
  242. %
  243. _DISPLAY
  244.  Another editing command is CENTERING A LINE.  There are
  245.  two ways to do this in EPED:
  246.  
  247.      *  by using the <F4>-"Center current line" command
  248.  
  249.      *  by using the combined keystrokes <CTRL-O C>.
  250. _ENDDISPLAY
  251. %
  252. _DISPLAY
  253.  To use the <F4> center command:
  254.  
  255.    *Type the line to be centered and press <Enter>.
  256.  
  257.    *Move the cursor back up to the line and press
  258.     <F4>. Select the option "Center current line",
  259.     press <Enter> and the line will automatically
  260.     be centered.
  261.  
  262.  If you want to "uncenter" the line, just use the
  263.  <Backspace> or <Delete> keys to remove the blank
  264.  spaces between the left margin and the first char-
  265.  acter of the line.
  266. _ENDDISPLAY
  267. %
  268. _DISPLAY
  269.  At the next screen, practice centering the headings
  270.  using the <F4>-"Center current line" command.  The steps,
  271.  once again, are:
  272.  
  273.      *Place the cursor in the line to be centered.
  274.  
  275.      *Press <F4>, select "Center current line",
  276.       and press <Enter>.
  277.  
  278.  Try uncentering the line using the <Backspace> or
  279.  <Delete> keys.
  280. _ENDDISPLAY
  281. %
  282. _OPENFILE DOC1.TXT
  283. [Place cursor in line, <F4>-Center current line]
  284. _CLEARALL
  285. %
  286. _DISPLAY
  287.  The other command requires pressing two keys with the
  288.  <Ctrl> key, rather than one as seen in previous commands.
  289.  
  290.    *Type the line to be centered and press <Enter>.
  291.  
  292.    *Move the cursor back up to the line.  Press <Ctrl>
  293.     and, while still holding down the <Ctrl> key, lightly
  294.     press <O> and then <C> in succession.  Release the
  295.     keys immediately.
  296.  
  297. _ENDDISPLAY
  298. %
  299. _DISPLAY
  300.  The next screen will give you a chance to practice typing
  301.  and then centering lines using the <Ctrl-O C> command.
  302.  
  303.  The screen will be blank  -- just begin typing a line or
  304.  two of text, and then center it.
  305.  
  306.  The steps, once again, are:
  307.  
  308.    *Type the line to be centered, then move the cursor
  309.     back to the line.
  310.  
  311.    *Press <Ctrl> then <O> and <C>, and the line will
  312.     be centered.
  313.  
  314. _ENDDISPLAY
  315. %
  316. _MARK
  317. [Type line, press <Enter>; move cursor to line, press <Ctrl-O C>]
  318. _REMOVE
  319. %
  320. _DISPLAY
  321.  This lesson introduced many of the editing commands of
  322.  EPED, using both the function key <F4> and the <Ctrl>
  323.  key in combination with other keys.
  324.  
  325.  There are many other commands which use <Ctrl> key
  326.  sequences; see the Epi Info manual for a complete list
  327.  of these functions.
  328. _ENDDISPLAY
  329. %
  330. _DISPLAY
  331.  Here is a review of the commands that were covered in
  332.  this lesson:
  333.  
  334.      *<Ctrl-T> to delete a word
  335.  
  336.      *<F4>-UNDO THIS LINE to restore the original
  337.       text of a line
  338.  
  339.      *<Ctrl-Y> to delete a line
  340.  
  341.      *<F4>-UNDELETE to undelete the line
  342.  
  343.      *<Ctrl-N> to insert a new line
  344.  
  345.      *<F4>-CENTER CURRENT LINE or <Ctrl-O C> to
  346.       center a line
  347. _ENDDISPLAY
  348. %
  349. _DISPLAY
  350.  That concludes Lesson 3.  Now you will return to the
  351.  EPED Tutorial Menu, where you can choose another lesson
  352.  or exit from the tutorial.
  353. _ENDDISPLAY
  354. %
  355. _RUN WPTM.EPA
  356.  
  357.